package strategy;

import java.util.Objects;

/**
 * @author weiZhiLin
 * @version 1.0
 * @date 2019/12/26 19:04
 */
public class StrategyDog {
    private Dog dog;

    public void display() {
        if (!Objects.isNull(dog)) {
            dog.doThing();
        }
    }

    public void setDogBehavior(Dog dog) {
        this.dog=dog;
    }
}
